<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="SciftbactplanCreateDlg" widgetVar="SciftbactplanCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.CreateSciftbactplanTitle}">

            <h:form id="SciftbactplanCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{sciftbactplanController.selected != null}">

                        <p:outputLabel value="#{myBundle.CreateSciftbactplanLabel_actividad}" for="actividad" />
                        <p:inputText id="actividad" value="#{sciftbactplanController.selected.actividad}" title="#{myBundle.CreateSciftbactplanTitle_actividad}" required="true" requiredMessage="#{myBundle.CreateSciftbactplanRequiredMessage_actividad}"/>

                        <p:outputLabel value="#{myBundle.CreateSciftbactplanLabel_meta}" for="meta" />
                        <p:inputText id="meta" value="#{sciftbactplanController.selected.meta}" title="#{myBundle.CreateSciftbactplanTitle_meta}" required="true" requiredMessage="#{myBundle.CreateSciftbactplanRequiredMessage_meta}"/>

                        <p:outputLabel value="#{myBundle.CreateSciftbactplanLabel_sem1}" for="sem1" />
                        <p:inputText id="sem1" value="#{sciftbactplanController.selected.sem1}" title="#{myBundle.CreateSciftbactplanTitle_sem1}" required="true" requiredMessage="#{myBundle.CreateSciftbactplanRequiredMessage_sem1}"/>

                        <p:outputLabel value="#{myBundle.CreateSciftbactplanLabel_sem2}" for="sem2" />
                        <p:inputText id="sem2" value="#{sciftbactplanController.selected.sem2}" title="#{myBundle.CreateSciftbactplanTitle_sem2}" required="true" requiredMessage="#{myBundle.CreateSciftbactplanRequiredMessage_sem2}"/>

                        <p:outputLabel value="#{myBundle.CreateSciftbactplanLabel_sem3}" for="sem3" />
                        <p:inputText id="sem3" value="#{sciftbactplanController.selected.sem3}" title="#{myBundle.CreateSciftbactplanTitle_sem3}" required="true" requiredMessage="#{myBundle.CreateSciftbactplanRequiredMessage_sem3}"/>

                        <p:outputLabel value="#{myBundle.CreateSciftbactplanLabel_sem4}" for="sem4" />
                        <p:inputText id="sem4" value="#{sciftbactplanController.selected.sem4}" title="#{myBundle.CreateSciftbactplanTitle_sem4}" required="true" requiredMessage="#{myBundle.CreateSciftbactplanRequiredMessage_sem4}"/>

                        <p:outputLabel value="#{myBundle.CreateSciftbactplanLabel_comentario}" for="comentario" />
                        <p:inputText id="comentario" value="#{sciftbactplanController.selected.comentario}" title="#{myBundle.CreateSciftbactplanTitle_comentario}" required="true" requiredMessage="#{myBundle.CreateSciftbactplanRequiredMessage_comentario}"/>

                        <p:outputLabel value="#{myBundle.CreateSciftbactplanLabel_prioridad}" for="prioridad" />
                        <p:inputText id="prioridad" value="#{sciftbactplanController.selected.prioridad}" title="#{myBundle.CreateSciftbactplanTitle_prioridad}" required="true" requiredMessage="#{myBundle.CreateSciftbactplanRequiredMessage_prioridad}"/>

                        <p:outputLabel value="#{myBundle.CreateSciftbactplanLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{sciftbactplanController.selected.fecharegistro}" title="#{myBundle.EditSciftbactplanTitle_fecharegistro}" required="true" requiredMessage="#{myBundle.EditSciftbactplanRequiredMessage_fecharegistro}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreateSciftbactplanLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{sciftbactplanController.selected.observaciones}" title="#{myBundle.CreateSciftbactplanTitle_observaciones}" />

                        <p:outputLabel value="#{myBundle.CreateSciftbactplanLabel_sciftbplandocid}" for="sciftbplandocid" />
                        <p:selectOneMenu id="sciftbplandocid" value="#{sciftbactplanController.selected.sciftbplandocid}" required="true" requiredMessage="#{myBundle.EditSciftbactplanRequiredMessage_sciftbplandocid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{sciftbplandocController.items}"
                                           var="sciftbplandocidItem"
                                           itemValue="#{sciftbplandocidItem}"
                                           itemLabel="#{sciftbplandocidItem.sciftbplandocid.toString()}"
                                           />
                            <f:converter binding="#{sciftbplandocConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.CreateSciftbactplanLabel_scaltblineinveid}" for="scaltblineinveid" />
                        <p:selectOneMenu id="scaltblineinveid" value="#{sciftbactplanController.selected.scaltblineinveid}" required="true" requiredMessage="#{myBundle.EditSciftbactplanRequiredMessage_scaltblineinveid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scaltblineinveController.items}"
                                           var="scaltblineinveidItem"
                                           itemValue="#{scaltblineinveidItem}"
                                           itemLabel="#{scaltblineinveidItem.scaltblineinveid.toString()}"
                                           />
                            <f:converter binding="#{scaltblineinveConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.CreateSciftbactplanLabel_pytctbactcompid}" for="pytctbactcompid" />
                        <p:selectOneMenu id="pytctbactcompid" value="#{sciftbactplanController.selected.pytctbactcompid}" required="true" requiredMessage="#{myBundle.EditSciftbactplanRequiredMessage_pytctbactcompid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pytctbactcompController.items}"
                                           var="pytctbactcompidItem"
                                           itemValue="#{pytctbactcompidItem}"
                                           itemLabel="#{pytctbactcompidItem.descripcion.toString()}"
                                           />
                            <f:converter binding="#{pytctbactcompConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{sciftbactplanController.saveNew}" value="#{myBundle.Save}" update="display,:SciftbactplanListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,SciftbactplanCreateDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="SciftbactplanCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
